package com.credithc.eagleeye.demo.interceptor;
import com.credithc.eagleeye.constants.UserInfoTypeEnum;
import com.credithc.eagleeye.plugins.mvc.AbstractEagleEyeMvcInterceptor;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
/**
 * 描 述: <br/>
 * 作 者: zhangjin<br/>
 * 创 建：2018年09月26日<br/>
 * 版 本：v1.0.0<br>
 * <p>
 * 历 史: (版本) 作者 时间 注释 <br/>
 */
public class EagleEyeInterceptor extends AbstractEagleEyeMvcInterceptor {
    @Override
    protected Map<String, String> getUserInfo(HttpServletRequest request) {
        Map<String, String> userMap = new HashMap<>();
        userMap.put(UserInfoTypeEnum.PHONE.getTypeName(),"13901234567");
        userMap.put(UserInfoTypeEnum.REAL_NAME.getTypeName(),"张三");
        return userMap;
    }
}
